package com.lbd.system.dao;

import com.lbd.system.bean.UserMoneyStatistics;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;

/**
 * Created by zzl on 2016/10/31.
 */
public interface UserMoneyStatisticsRepository extends PagingAndSortingRepository<UserMoneyStatistics, Serializable>, JpaSpecificationExecutor<UserMoneyStatistics> {
    /**
     * 通过用户Id查询用户资金统计
     *
     * @param userId
     * @return
     */
    UserMoneyStatistics findByUserId(String userId);
}
